package com.github.bitsapling.sapling.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.github.bitsapling.sapling.entity.Comment;
import com.github.bitsapling.sapling.mapper.CommentMapper;
import com.github.bitsapling.sapling.service.CommentService;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;

@Service
public class CommentServiceImpl extends ServiceImpl<CommentMapper, Comment> implements CommentService {
    @Resource
    private CommentMapper commentMapper;

    @Override
    public boolean determinePost(Comment comment) {
        return commentMapper.deleteById(comment.getId()) > 0;
    }
}
